﻿<%@ Page Title="" Language="C#" MasterPageFile="~/App_SiteMasterPage/Site.Master" AutoEventWireup="true" CodeBehind="CitiesManagementProgram.aspx.cs" Inherits="eProject.Web.UI.Admin.CitiesManagementProgram" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="script" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="LeftContent" runat="server">
<div id="widget-categories" class="widget widget-categories">
        <div class="widget-inner">
            <div class="widget-title">
                <h5>
                    Cities</h5>
            </div>
            <div class="widget-content">
                <ul>
                    <li><a class="add" href="CitiesManagementAddNew.aspx">Add New</a></li>
                    <li><a href="CitiesManagementProgram.aspx">List Cities</a></li>
                </ul>
            </div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="RightContent" runat="server">
<div class="widget">
<div class="widget-inner">
<div class="widget-title">
        <h5>
            Cities Search Information : <asp:TextBox ID="txtSearchText" runat="server"></asp:TextBox>
            <asp:CheckBox ID="cbDelete" runat="server" Checked="false" Text="Is Deleted"/>
            <asp:Button ID="btnSearch" runat="server" Text="Search" 
                onclick="btnSearch_Click" />  
        </h5>
    </div>
    <div class="widget-content">
    <asp:GridView ID="grvCities" runat="server" CellPadding="4" ForeColor="#333333" 
        GridLines="None" AllowPaging="True" ShowHeaderWhenEmpty="True"
        AutoGenerateColumns="False" DataKeyNames="Id" BorderColor="#E7E7FF" BorderStyle="Solid"
        BorderWidth="1px" OnPageIndexChanging="grvCities_PageIndexChanging" OnRowEditing="grvCities_RowEditing" OnRowDeleting="grvCities_RowDeleting" OnRowUpdating="grvCities_RowUpdating" Width="720px">
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <Columns>
                <asp:TemplateField HeaderText="Edit">
                    <ItemTemplate>
                        <asp:ImageButton ID="btnEdit" runat="server" CausesValidation="False" CommandName="Edit"
                            ImageUrl="~/Images/Icons/edit.png" />
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:BoundField DataField="Id" HeaderText="City ID" Visible="false" ItemStyle-HorizontalAlign="Center"
                    ReadOnly="True">
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:TemplateField HeaderText="City Name">
                    <ItemTemplate>
                        <asp:Label ID="lblName" runat="Server" Text='<%# Eval("Name") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Created Date">
                    <ItemTemplate>
                        <asp:Label ID="lblCreatedDate" runat="Server" Text='<%# Eval("CreatedDate") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Last Update">
                    <ItemTemplate>
                        <asp:Label ID="lblLastUpdate" runat="Server" Text='<%# Eval("LastUpdate") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Delete">
                    <ItemTemplate>
                        <asp:ImageButton ID="btnDelete" runat="server" CausesValidation="False" CommandName="Delete"
                            ImageUrl="~/Images/Icons/delete.png" />
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Active">
                    <ItemTemplate>
                        <asp:ImageButton ID="btnUpdate" runat="server" CausesValidation="False" CommandName="Update"
                            ImageUrl="~/Images/Icons/back.png" />
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
            </Columns>

        <EditRowStyle BackColor="#999999" />
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#E9E7E2" />
        <SortedAscendingHeaderStyle BackColor="#506C8C" />
        <SortedDescendingCellStyle BackColor="#FFFDF8" />
        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
    </asp:GridView>
    </div>
    </div>
    </div>
</asp:Content>
